package persistent.prestige.console.threadmode.t3.bus;

import persistent.prestige.console.threadmode.t3.channel.ChannelPipeline;
import persistent.prestige.console.threadmode.t3.channel.DefaultChannelPipeline;

public class ServerEnv {
	
	//private static ChannelPipeline channelPipeline = new DefaultChannelPipeline();
	
	//static {
	//	channelPipeline.addLast(new MyByteToMessageDecoder());
	//}
	
	
	/**
	 * 这里简单模拟 单通道一个特定的Channel,相关handler线程安全
	 * @return
	 */
	public static final ChannelPipeline pipeline() {
		ChannelPipeline channelPipeline = new DefaultChannelPipeline();
		channelPipeline.addLast(new MyByteToMessageDecoder());
		return channelPipeline;
	}

}
